package main
import "fmt"
func main(){
	a := make([]int, 5, 10)	//len = 5, cap = 10
	fmt.Printf("a type is :%T\n", a)
	fmt.Println(a)
	fmt.Printf("len(a) = %d\tcap(a) = %d\n", len(a), cap(a))
	
	
	b := make([]int, 5)	//len = 5, cap = len
	fmt.Printf("b type is :%T\n", b)
	fmt.Println(b)
	fmt.Printf("len(b) = %d\tcap(b) = %d\n", len(b), cap(b))
	
	a = append(a, 1)
	a = append(a, 2)
	a = append(a, 3)
	a = append(a, 4)
	fmt.Println(a)
	fmt.Printf("len(a) = %d\tcap(a) = %d\n", len(a), cap(a))
	
	a = append(a, 5)
	a = append(a, 6)
	a = append(a, 7)
	a = append(a, 8)
	fmt.Println(a)
	fmt.Printf("len(a) = %d\tcap(a) = %d\n", len(a), cap(a))
	
	a = append(a, 9)
	a = append(a, 10)
	a = append(a, 11)
	a = append(a, 12)
	a = append(a, 14)
	a = append(a, 15)
	a = append(a, 16)
	a = append(a, 17)
	fmt.Println(a)
	fmt.Printf("len(a) = %d\tcap(a) = %d\n", len(a), cap(a))
}
